import SvgIcon from '@/components/SvgIcon'

const icons = import.meta.globEager("./svg/*.svg")

export default app => {
  app.component('svg-icon', SvgIcon)
}

export const iconList = () => {
  return Object.keys(icons).map(item => item.slice(6,-4))
}
